<script lang="ts" setup>
import { reactive } from 'vue'


// do not use same name with ref
const form = reactive({
    name: '',
    region: '',
    date1: '',
    date2: '',
    delivery: false,
    type: [],
    resource: '',
    desc: '',
    nickname: '',
    num: '',
})



const onSubmit = () => {
    console.log('submit!')
}

</script>
<template>
    <el-form :model="form" label-width="auto" style="max-width: 600px">
        <el-form-item label="昵称：">
            <el-input v-model="form.nickname" placeholder="请输入你的直播昵称" />
        </el-form-item>
        <el-form-item label="直播类型">
            <el-select v-model="form.region" placeholder="请选择你的直播类型">
                <el-option label="舞蹈" value="1"/>
                <el-option label="科普" value="2"/>
                <el-option label="影视" value="3"/>
                <el-option label="音乐" value="4"/>
                <el-option label="聊天" value="5"/>
                <el-option label="游戏" value="6"/>
                <el-option label="表演" value="7"/>
                <el-option label="其他" value="8"/>
            </el-select>
        </el-form-item>
        <el-form-item label="姓名：">
            <el-input v-model="form.name" placeholder="请输入你的真实姓名" />
        </el-form-item>
        <el-form-item label="身份证号码：">
            <el-input v-model="form.num" placeholder="请输入你的身份证号码" />
        </el-form-item>
        <el-form-item label="自我介绍">
      <el-input v-model="form.desc" type="textarea" placeholder="自我介绍一下吧~"/>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">认证</el-button>
      <el-button>取消</el-button>
    </el-form-item>


    </el-form>
</template>
<style scoped>

</style>